﻿<%@ Control Language="C#" ClassName="PatHistoricFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataEntityName" runat="server" Text="Entity Name:" AssociatedControlID="dataEntityName" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataEntityName" DataSourceID="EntityNamePatHistoricAttributeByEntityDataSource" DataTextField="AttributeLabel" DataValueField="EntityName" SelectedValue='<%# Bind("EntityName") %>' AppendNullItem="true" Required="true" NullItemText="< Seleccione ...>" ErrorText="Required" />
					<data:PatHistoricAttributeByEntityDataSource ID="EntityNamePatHistoricAttributeByEntityDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataIdActionType" runat="server" Text="Id Action Type:" AssociatedControlID="dataIdActionType" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataIdActionType" Text='<%# Bind("IdActionType") %>'></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataIdActionType" runat="server" Display="Dynamic" ControlToValidate="dataIdActionType" ErrorMessage="Required"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeVal_dataIdActionType" runat="server" Display="Dynamic" ControlToValidate="dataIdActionType" ErrorMessage="Invalid value" MaximumValue="255" MinimumValue="0" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataValue" runat="server" Text="Value:" AssociatedControlID="dataValue" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataValue" Text='<%# Bind("Value") %>'  TextMode="MultiLine"  Width="250px" Rows="5"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataValueOld" runat="server" Text="Value Old:" AssociatedControlID="dataValueOld" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataValueOld" Text='<%# Bind("ValueOld") %>'  TextMode="MultiLine"  Width="250px" Rows="5"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataCreationLogin" runat="server" Text="Creation Login:" AssociatedControlID="dataCreationLogin" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataCreationLogin" Text='<%# Bind("CreationLogin") %>' MaxLength="50"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataCreationLogin" runat="server" Display="Dynamic" ControlToValidate="dataCreationLogin" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataCreationDate" runat="server" Text="Creation Date:" AssociatedControlID="dataCreationDate" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataCreationDate" Text='<%# Bind("CreationDate", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataCreationDate" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" /><asp:RequiredFieldValidator ID="ReqVal_dataCreationDate" runat="server" Display="Dynamic" ControlToValidate="dataCreationDate" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


